import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { CarsouelComponent } from './component/page/carsouel/carsouel.component';
import { ListComponent } from './component/page/list/list.component';
import { HomeComponent } from './component/home/home/home.component';
import { PersonnalComponent } from './component/personal/personnal/personnal.component';
import {RouterModule, Routes} from "@angular/router";
import { ClassificationComponent } from './component/page/classification/classification.component';
import { LoginComponent } from './component/login/login/login.component';
import { RegisterComponent } from './component/register/register/register.component';
import { FindpwdComponent } from './component/fingpwd/findpwd/findpwd.component';

const routeConif: Routes = [
  {path:'',redirectTo:'/home',pathMatch:'full'},
  {path:'home',component:HomeComponent},
  {path:'personal',component:PersonnalComponent},
  {path:'login',component:LoginComponent},
  {path:'register',component:RegisterComponent},
  {path:'findpwd',component:FindpwdComponent}
];

@NgModule({
  declarations: [
    AppComponent,
    CarsouelComponent,
    ListComponent,
    HomeComponent,
    PersonnalComponent,
    ClassificationComponent,
    LoginComponent,
    RegisterComponent,
    FindpwdComponent
  ],
  imports: [
    BrowserModule,
    RouterModule.forRoot(routeConif)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
